package com.xiaomi.util;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

public class Todaytime {

    //获取今日凌晨0点0分0秒的时间
    public static String Todaytime() {
        String hms = "00:00:00";
        DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yyyy-MM-dd");
        LocalDateTime ldt = LocalDateTime.now();
        String orderNum = ldt.format(dtf) + " " + hms;
        return orderNum;
    }

    public static void main(String[] args) {
        System.out.println(Todaytime.Todaytime());

    }
}
